From e484af8e9665c647a52c2457033b14c0ecd56bcc Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sun, 5 Nov 2017 00:05:56 +0100 Subject: [PATCH] wayland: Fix embarassing bug Yes, I did not get to test this code path until now. Because nobody uses icon surfaces, boo! --- gdk/wayland/gdkcursor-wayland.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gdk/wayland/gdkcursor-wayland.c b/gdk/wayland/gdkcursor-wayland.c index 925e5b1fbb..cc3b5e38a6 100644 --- a/gdk/wayland/gdkcursor-wayland.c +++ b/gdk/wayland/gdkcursor-wayland.c @@ -214,10 +214,10 @@ _gdk_wayland_cursor_get_buffer (GdkWaylandDisplay *display, surface = g_hash_table_lookup (display->cursor_surface_cache, cursor); if (surface == NULL) { - _gdk_wayland_display_create_shm_surface (display, - gdk_texture_get_width (texture), - gdk_texture_get_height (texture), - 1); + surface = _gdk_wayland_display_create_shm_surface (display, + gdk_texture_get_width (texture), + gdk_texture_get_height (texture), + 1); gdk_texture_download (texture, cairo_image_surface_get_data (surface), -- 2.30.2